var curWwwPath = window.document.location.href;
var pathName =  window.document.location.pathname;
var pos = curWwwPath.indexOf(pathName);
var localhostPaht = curWwwPath.substring(0,pos);
const projectName = pathName.substring(1,pathName.substr(1).indexOf('/')+1);   //输出的工程名前面没有/ 
	  	
